package n

import android.content.Context
import androidx.preference.PreferenceManager

object Init {

    /**
     *  调用计算方法？？？
     */
    @JvmStatic
    external fun n0099(
        context: Context,
        lengths: IntArray,
        counts: IntArray,
        rawLen: Int,
        rawMaxCombination: Int
    ): IntArray

    /**
     * 生成Date加入SP
     */
    @JvmStatic
    external fun n0015(context: Context): Unit


    /**
     * 生成Info加入SP
     * return unit
     */
    @JvmStatic
    external fun n0088(context: Context): Unit

    /**
     * 生成UUID加入SP
     * return unit
     */
    @JvmStatic
    external fun n0808(context: Context): Unit


    /**
     * 生成Android ID加入SP
     * return unit
     */
    @JvmStatic
    external fun n0708(context: Context): Unit


    /**
     * 判断是否已经激活
     */
    @JvmStatic
    external fun isActive(context: Context): Boolean //todo 改名字

    /**
     * 获取SN值
     */
    @JvmStatic
    external fun n0020(context: Context): String

    /**
     * 获取SP中保存的激活码
     */
    @JvmStatic
    external fun n0040(context: Context): String

    /**
     * 获取手机
     */
    @JvmStatic
    external fun n0060(context: Context): String


    @JvmStatic
    fun n0790(c: Context, n: String, s: String) {
        val e = PreferenceManager.getDefaultSharedPreferences(c).edit()
        e.putString(n, s)
        e.apply()
    }
    @JvmStatic
    fun n0190(c: Context, n: String, s: String) {
        val e = PreferenceManager.getDefaultSharedPreferences(c).edit()
        e.putString(n, s)
        e.apply()
    }

    init {
        System.loadLibrary("log2")
    }
}